package day11;

public class Person extends Creature {
	String name;
	int age;
	String major;
	
	public Person(){
		
	}

	public Person(String name){
		this.name = name;
		
	}
	public Person(int age){
		this.age = age;
	}
	public Person(String name,int age){
		this(name);
		this.age = age;
	}
	
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public String getMajor() {
		return major;
	}

	public void setMajor(String major) {
		this.major = major;
	}

	public void eat() {
		System.out.println("eat");
	}
	
	
}
